home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / shelf_Cloth.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  5.2 KB  |  156 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Alias|Wavefront Script File
  19. //  MODIFY THIS AT YOUR OWN RISK
  20. //
  21. //  Creation Date:  08 January 2002
  22. //
  23. //  Description:
  24. //      Define the Cloth shelf.
  25. //
  26. global proc shelf_Cloth() {
  27.  
  28.     //    These items are only available in Maya Unlimited.
  29.     //
  30.     //    Note that there really should be a license check explicitly
  31.     //    for cloth. Currently, there isn't so that is why the test
  32.     //    below is on fluids, since fluids == Unlimited for 4.5.
  33.     //
  34.     if( fluidEditLicenseFound() ) {
  35.  
  36.         shelfButton
  37.             -label      "Panel"
  38.             -annotation "Panel: Select curves to create a cloth panel"
  39.             -image1     "cpCreatePanel.xpm"
  40.             -command    ("performCloth createPanel");
  41.  
  42.         shelfButton
  43.             -label      "Garment"
  44.             -annotation "Garment: Select curves or a panel to create a garment"
  45.             -image1     "cpCreateGarment.xpm"
  46.             -command    ("performCloth createGarment");
  47.  
  48.         shelfButton
  49.             -label      "Seam"
  50.             -annotation "Seam: Select one or two curves to create a seam"
  51.             -image1     "cpCreateSeam.xpm"
  52.             -command    ("performCloth createSeam");
  53.  
  54.         shelfButton
  55.             -label      "Collision Object"
  56.             -annotation ("Collision Object: Select a NURBS or polygon object "
  57.                         + "to create a collision object")
  58.             -image1     "cpCreateCollisionObj.xpm"
  59.             -command    ("$obj = `ls -sl`; performCloth createCollisionObject; "
  60.                         + "select $obj");
  61.  
  62.         shelfButton
  63.             -label      "Remove Collision Object"
  64.             -annotation ("Remove Collision Object: Disconnect selected "
  65.                         + "collision objects from the solver")
  66.             -image1     "cpRemoveCollisionObj.xpm"
  67.             -command    ("performCloth removeCollisionObject");
  68.  
  69.         shelfButton
  70.             -label      "Cloth Object"
  71.             -annotation ("Cloth Object: Select a polygon object to create "
  72.                         + "a cloth object")
  73.             -image1     "cpCreateClothObject.xpm"
  74.             -command    ("$obj = `ls -sl`; performCloth createClothObject; "
  75.                         + "select $obj");
  76.  
  77.         shelfButton
  78.             -label      "Transform Constraint"
  79.             -annotation ("Transform Constraint: Select cloth vertices "
  80.                         + "or a curve, then a transform")
  81.             -image1     "cpTransConst.xpm"
  82.             -command    ("performCloth createTransformConstraint");
  83.  
  84.         shelfButton
  85.             -label      "Mesh Constraint"
  86.             -annotation ("Mesh Constraint: Select cloth vertices or a "
  87.                         + "curve, then a transform")
  88.             -image1     "cpMeshConst.xpm"
  89.             -command    ("performCloth createMeshConstraint");
  90.  
  91.         shelfButton
  92.             -label      "Cloth Constraint"
  93.             -annotation ("Create Cloth Constraint: Select cloth vertices or a "
  94.                         + "curve, then the cloth")
  95.             -image1     "cpClothConst.xpm"
  96.             -command    ("performCloth createClothConstraint");
  97.  
  98.         shelfButton
  99.             -label      "Field Constraint"
  100.             -annotation ("Field Constraint: Select cloth vertices or a "
  101.                         + "curve, then a field")
  102.             -image1     "cpFieldConst.xpm"
  103.             -command    ("performCloth createFieldConstraint");
  104.  
  105.         shelfButton
  106.             -label      "Collision Set"
  107.             -annotation "Collision Set: Select cloth vertices or a curve"
  108.             -image1     "cpCollisionConst.xpm"
  109.             -command    ("performCloth createCollision");
  110.  
  111.         shelfButton
  112.             -label      "Button Constraint"
  113.             -annotation ("Button Constraint: Select one or more "
  114.                         + "transforms, then the cloth")
  115.             -image1     "cpButtonConst.xpm"
  116.             -command    ("cpButton");
  117.  
  118.         shelfButton
  119.             -label      "Cloth Property"
  120.             -annotation "Cloth Property"
  121.             -image1     "cpClothProp.xpm"
  122.             -command    ("evalEcho(\"cpCreateNewProperty\")");
  123.  
  124.         shelfButton
  125.             -label      "Paint Cloth Properties Tool"
  126.             -annotation ("Paint Cloth Properties Tool: Paint Cloth Property "
  127.                         + "Attributes")
  128.             -image1     "cpClothPaintProp.xpm"
  129.             -command    ("clothPaintToolScript 4");
  130.  
  131.         shelfButton
  132.             -label      "Delete Cache"
  133.             -annotation "Delete Cache: Select a solver or garment"
  134.             -image1     "cpDeleteCache.xpm"
  135.             -command    ("cpDeleteCache");
  136.  
  137.         shelfButton
  138.             -label      "Truncate Cache"
  139.             -annotation "Truncate Cache: Select a solver or garment"
  140.             -image1     "cpTruncCache.xpm"
  141.             -command    ("cpTruncateCache");
  142.  
  143.         shelfButton
  144.             -label      "Start Simulation"
  145.             -annotation "Start Simulation"
  146.             -image1     "cpStartSim.xpm"
  147.             -command    ("performCloth startSimulation");
  148.  
  149.         shelfButton
  150.             -label      "Stop Simulation"
  151.             -annotation "Stop Simulation"
  152.             -image1     "cpStopSim.xpm"
  153.             -command    ("performCloth stopSimulation");
  154.     }
  155. }
  156.